/*
 * 
 */
package fr.univtln.superplanning.controller;

import fr.univtln.superplanning.api.ISuperplanningManager;
import fr.univtln.superplanning.gui.planning.PlanningViewer;

/**
 * This class control the web view of planning by updating the view according to
 * the filters values.
 * 
 * @author vincent
 * 
 */
public class PlanningViewerController implements IGenericController {

	private PlanningViewer planningViewer;
	private ISuperplanningManager superplanningManager;

	public PlanningViewerController(ISuperplanningManager superplanningManager) {
		planningViewer = new PlanningViewer(this);
		this.superplanningManager = superplanningManager;
		initializeUi();
		showView();
	}

	@Override
	public void updateUi() {
		
		// Simply update the browser ;)
		planningViewer.updateBrowser();
	}

	private void showView() {
		// TODO Auto-generated method stub

	}

	private void initializeUi() {
		// TODO Auto-generated method stub

	}

	public PlanningViewer getPlanningViewer() {
		return planningViewer;
	}

	public void setPlanningViewer(PlanningViewer planningViewer) {
		this.planningViewer = planningViewer;
	}

	public ISuperplanningManager getSuperplanningManager() {
		return superplanningManager;
	}

	public void setSuperplanningManager(ISuperplanningManager superplanningManager) {
		this.superplanningManager = superplanningManager;
	}

}
